package 内部类作业;

public class A {
    int   h;
    String   s;
    static   int   h1;
    private   int   h2;
    static   String  s1;
    private   String  s2;
    //实例成员内部类
    class  B{
        int  id;
        String  name;
        public    void  eat(){
            System.out.println("吃饭");
        }
    }
    //静态成员内部类
    static   class   C{
           static   int a;
           public  static    int   b;
           private String  name;
           public   String  sex;
           double  weight;
           public   void  say(){
               System.out.println("说话");
           }
           public static   void  drink() {
               System.out.println("喝水");
           }
    }
    public   void   shiLi(){
        B b = new B();
        int id = b.id;
        String name = b.name;
        C c = new C();
        String name1 = c.name;
        String sex = c.sex;
        double weight = c.weight;
       //c.a;//为什么静态内部类的对象调不成，那个内部的静态的属性
        int a = C.a;
        int b1 = C.b;
        JingTai();
    }
    public   static   void   JingTai(){
        C c = new C();
        double weight = c.weight;
        String name = c.name;
        String sex = c.sex;
        C.drink();
        int a = C.a;
        int b = C.b;

    }
    public static void demo(){}
}
